package com.lsc.record.core.entity;

import java.util.List;

import com.lsc.record.core.listener.BaseEntityInsertListener;
import com.lsc.record.core.listener.BaseEntityUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.RelationOneToMany;
import com.mybatisflex.annotation.RelationOneToOne;
import com.mybatisflex.annotation.Table;

@Table(value="dm_type",onInsert = BaseEntityInsertListener.class,onUpdate = BaseEntityUpdateListener.class)
public class DmType extends BaseEntity{
	private String description;
	
	private String snCode;
	
	private String tableName;
	
	private String storeName;
	
	private String storeId;
	
	@Column(ignore = true)
	@RelationOneToOne(selfField = "storeId",targetField = "id")
	private DmStore store;
	
	private String superId;
	
	private Boolean isInherited;
	
	@Column(ignore = true)
	@RelationOneToMany(selfField = "id",targetField = "typeId",orderBy = "id")
	private List<DmTypeAttr> items;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSnCode() {
		return snCode;
	}

	public void setSnCode(String snCode) {
		this.snCode = snCode;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getSuperId() {
		return superId;
	}

	public void setSuperId(String superId) {
		this.superId = superId;
	}

	public Boolean getIsInherited() {
		return isInherited;
	}

	public void setIsInherited(Boolean isInherited) {
		this.isInherited = isInherited;
	}

	public List<DmTypeAttr> getItems() {
		return items;
	}

	public void setItems(List<DmTypeAttr> items) {
		this.items = items;
	}

	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}

	public DmStore getStore() {
		return store;
	}

	public void setStore(DmStore store) {
		this.store = store;
	}
	
	
}
